package com.qf.admin.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("orders")
public class Orders {

    @TableId(type = IdType.AUTO)
    private Integer o_id;
    private String o_no;
    private String o_good_title;
    private String o_num;
    private BigDecimal o_good_price;
    private String o_status;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date o_create_time;

    private OrderAddress orderAddress;


}
